/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PScreen.java
 *
 * Created on Oct 24, 2011, 2:51:59 PM
 */
package GuiInterfaced;

import com.jme3.system.AppSettings;
import com.jme3.system.JmeCanvasContext;
import java.awt.Dimension;
import java.io.*;


/**
 *
 * @author Nikki
 */
public class PScreen extends javax.swing.JFrame {
   String whichShape="";
 
    /** Creates new form PScreen */
    public PScreen() {
        
        initComponents();
        
    }
public String getWhichShape()
{
    return whichShape;
}
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    //@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        gamePanel = new javax.swing.JPanel();
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 0));
        menuPanel = new javax.swing.JPanel();
        squarePrismButton = new javax.swing.JButton();
        sphereButton = new javax.swing.JButton();
        triangularPrismButton = new javax.swing.JButton();
        rectangularPrismButton = new javax.swing.JButton();
        hexagonalPrismButton = new javax.swing.JButton();
        cylinderButton = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        select = new javax.swing.JButton();
        move = new javax.swing.JButton();
        Rotate = new javax.swing.JButton();
        Zoom = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();
        rotateLeftButton = new javax.swing.JButton();
        rightRotateButton = new javax.swing.JButton();
        forwardRotateButton = new javax.swing.JButton();
        backwardsRotateButton = new javax.swing.JButton();
        zoomInButton = new javax.swing.JButton();
        zoomOutButton = new javax.swing.JButton();
        jSlider1 = new javax.swing.JSlider();
        jSeparator4 = new javax.swing.JSeparator();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        edgeColorButton = new javax.swing.JButton();
        edgeWeightButton = new javax.swing.JButton();
        faceColorButton = new javax.swing.JButton();
        jSeparator5 = new javax.swing.JSeparator();
        logPanel = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        logTextArea = new javax.swing.JTextArea();
        logLabel = new javax.swing.JLabel();
        MenuBar = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        gamePanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        gamePanel.setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
        gamePanel.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                gamePanelComponentShown(evt);
            }
        });

        javax.swing.GroupLayout gamePanelLayout = new javax.swing.GroupLayout(gamePanel);
        gamePanel.setLayout(gamePanelLayout);
        gamePanelLayout.setHorizontalGroup(
            gamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(gamePanelLayout.createSequentialGroup()
                .addGap(65, 65, 65)
                .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(1173, Short.MAX_VALUE))
        );
        gamePanelLayout.setVerticalGroup(
            gamePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(gamePanelLayout.createSequentialGroup()
                .addGap(243, 243, 243)
                .addComponent(filler1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(284, Short.MAX_VALUE))
        );

        menuPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        squarePrismButton.setAction(squarePrismButton.getAction());
        squarePrismButton.setText("Square Prism");
        squarePrismButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                squarePrismButtonMouseClicked(evt);
            }
        });
        squarePrismButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                squarePrismButtonActionPerformed(evt);
            }
        });

        sphereButton.setText("Sphere");
        sphereButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                sphereButtonMouseClicked(evt);
            }
        });
        sphereButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sphereButtonActionPerformed(evt);
            }
        });

        triangularPrismButton.setText("Triangular Prism");
        triangularPrismButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                triangularPrismButtonMouseClicked(evt);
            }
        });
        triangularPrismButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                triangularPrismButtonActionPerformed(evt);
            }
        });

        rectangularPrismButton.setText("Rectangular Pyramid");
        rectangularPrismButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                rectangularPrismButtonMouseClicked(evt);
            }
        });
        rectangularPrismButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rectangularPrismButtonActionPerformed(evt);
            }
        });

        hexagonalPrismButton.setText("Hexagonal Prism");
        hexagonalPrismButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                hexagonalPrismButtonMouseClicked(evt);
            }
        });
        hexagonalPrismButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                hexagonalPrismButtonActionPerformed(evt);
            }
        });

        cylinderButton.setText("Cylinder");
        cylinderButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                cylinderButtonMouseClicked(evt);
            }
        });
        cylinderButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cylinderButtonActionPerformed(evt);
            }
        });

        select.setText("Select");
        select.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                selectMouseClicked(evt);
            }
        });

        move.setText("Move");

        Rotate.setText("Rotate");

        Zoom.setText("Zoom");

        rotateLeftButton.setText("Left");

        rightRotateButton.setText("Right");

        forwardRotateButton.setText("Forward");

        backwardsRotateButton.setText("Backwards");

        zoomInButton.setText("In");

        zoomOutButton.setText("Out");

        jSlider1.setMaximum(200);
        jSlider1.setMinimum(5);
        jSlider1.setMinorTickSpacing(5);
        jSlider1.setPaintTicks(true);
        jSlider1.setValue(100);

        jLabel1.setText("5%");

        jLabel2.setText("200%");

        jLabel3.setText("100%");

        edgeColorButton.setText("Edge Color");

        edgeWeightButton.setText("Edge Weight");

        faceColorButton.setText("Face Color");

        javax.swing.GroupLayout menuPanelLayout = new javax.swing.GroupLayout(menuPanel);
        menuPanel.setLayout(menuPanelLayout);
        menuPanelLayout.setHorizontalGroup(
            menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, menuPanelLayout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(select)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE)
                .addComponent(move)
                .addGap(49, 49, 49))
            .addGroup(menuPanelLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(Zoom)
                .addGap(34, 34, 34)
                .addComponent(zoomInButton)
                .addGap(40, 40, 40)
                .addComponent(zoomOutButton)
                .addGap(31, 31, 31))
            .addComponent(jSeparator4, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addGroup(menuPanelLayout.createSequentialGroup()
                .addComponent(jLabel1)
                .addGap(82, 82, 82)
                .addComponent(jLabel3)
                .addGap(73, 73, 73)
                .addComponent(jLabel2)
                .addContainerGap())
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addGroup(menuPanelLayout.createSequentialGroup()
                .addComponent(edgeColorButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(edgeWeightButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(faceColorButton)
                .addGap(7, 7, 7))
            .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
            .addGroup(menuPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(squarePrismButton)
                    .addComponent(rectangularPrismButton)
                    .addComponent(triangularPrismButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(hexagonalPrismButton, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(cylinderButton, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(sphereButton, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap(22, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, menuPanelLayout.createSequentialGroup()
                .addContainerGap(35, Short.MAX_VALUE)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(menuPanelLayout.createSequentialGroup()
                        .addComponent(forwardRotateButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(backwardsRotateButton))
                    .addGroup(menuPanelLayout.createSequentialGroup()
                        .addComponent(Rotate)
                        .addGap(18, 18, 18)
                        .addComponent(rotateLeftButton)
                        .addGap(18, 18, 18)
                        .addComponent(rightRotateButton)))
                .addGap(36, 36, 36))
            .addComponent(jSeparator5, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE)
        );
        menuPanelLayout.setVerticalGroup(
            menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(menuPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(squarePrismButton)
                    .addComponent(sphereButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rectangularPrismButton)
                    .addComponent(cylinderButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(triangularPrismButton)
                    .addComponent(hexagonalPrismButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(move)
                    .addComponent(select, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 1, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rightRotateButton)
                    .addComponent(rotateLeftButton)
                    .addComponent(Rotate))
                .addGap(11, 11, 11)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(backwardsRotateButton)
                    .addComponent(forwardRotateButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Zoom)
                    .addComponent(zoomOutButton)
                    .addComponent(zoomInButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(menuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(edgeColorButton)
                    .addComponent(edgeWeightButton)
                    .addComponent(faceColorButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(303, Short.MAX_VALUE))
        );

        logTextArea.setColumns(20);
        logTextArea.setRows(5);
        jScrollPane1.setViewportView(logTextArea);

        logLabel.setFont(new java.awt.Font("Tahoma", 1, 18));
        logLabel.setText("Log");

        javax.swing.GroupLayout logPanelLayout = new javax.swing.GroupLayout(logPanel);
        logPanel.setLayout(logPanelLayout);
        logPanelLayout.setHorizontalGroup(
            logPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(logPanelLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(logLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1156, 1156, 1156))
            .addGroup(logPanelLayout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1232, Short.MAX_VALUE)
                .addContainerGap())
        );
        logPanelLayout.setVerticalGroup(
            logPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, logPanelLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(logLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(menuPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(logPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(gamePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
                .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(menuPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
                        .addComponent(gamePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(logPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jMenu1.setText("File");
        MenuBar.add(jMenu1);

        jMenu2.setText("Edit");
        MenuBar.add(jMenu2);

        setJMenuBar(MenuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void squarePrismButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_squarePrismButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_squarePrismButtonActionPerformed

private void sphereButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sphereButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_sphereButtonActionPerformed

private void triangularPrismButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_triangularPrismButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_triangularPrismButtonActionPerformed

private void rectangularPrismButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rectangularPrismButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_rectangularPrismButtonActionPerformed

private void hexagonalPrismButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hexagonalPrismButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_hexagonalPrismButtonActionPerformed

private void cylinderButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cylinderButtonActionPerformed
// TODO add your handling code here:
    
}//GEN-LAST:event_cylinderButtonActionPerformed

private void squarePrismButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_squarePrismButtonMouseClicked
// TODO add your handling code here:
    //makeSquarePrism();
    System.out.println("testing MOFO SQUARE");
   try {
    BufferedWriter out = new BufferedWriter(new FileWriter("shapeFile.txt", true));
    out.write("square");
    out.close();
} catch (IOException e) {
}
    whichShape="square";
    
   // makeThisShape = "Square";
}//GEN-LAST:event_squarePrismButtonMouseClicked
     
private void sphereButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_sphereButtonMouseClicked
// TODO add your handling code here:
    //makeSpherePrism();
}//GEN-LAST:event_sphereButtonMouseClicked

private void triangularPrismButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_triangularPrismButtonMouseClicked
// TODO add your handling code here:
    //makeTriangularPrism();
}//GEN-LAST:event_triangularPrismButtonMouseClicked

private void rectangularPrismButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_rectangularPrismButtonMouseClicked
// TODO add your handling code here:
    //makeRectangularPrism();
}//GEN-LAST:event_rectangularPrismButtonMouseClicked

private void hexagonalPrismButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_hexagonalPrismButtonMouseClicked
// TODO add your handling code here:
    //makeHexagonalPrism();
}//GEN-LAST:event_hexagonalPrismButtonMouseClicked

private void cylinderButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_cylinderButtonMouseClicked
// TODO add your handling code here:
    //makeCylinder();
    
    
    
}//GEN-LAST:event_cylinderButtonMouseClicked

private void selectMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_selectMouseClicked
// TODO add your handling code here: This method will enable the user to select a shape
}//GEN-LAST:event_selectMouseClicked

private void gamePanelComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_gamePanelComponentShown
// TODO add your handling code here:
    
}//GEN-LAST:event_gamePanelComponentShown

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        
    
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(PScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(PScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(PScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PScreen.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
               
                new PScreen().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JButton Rotate;
    private javax.swing.JButton Zoom;
    private javax.swing.JButton backwardsRotateButton;
    private javax.swing.JButton cylinderButton;
    private javax.swing.JButton edgeColorButton;
    private javax.swing.JButton edgeWeightButton;
    private javax.swing.JButton faceColorButton;
    private javax.swing.Box.Filler filler1;
    private javax.swing.JButton forwardRotateButton;
    public javax.swing.JPanel gamePanel;
    private javax.swing.JButton hexagonalPrismButton;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSlider jSlider1;
    private javax.swing.JLabel logLabel;
    private javax.swing.JPanel logPanel;
    private javax.swing.JTextArea logTextArea;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JPanel menuPanel;
    private javax.swing.JButton move;
    private javax.swing.JButton rectangularPrismButton;
    private javax.swing.JButton rightRotateButton;
    private javax.swing.JButton rotateLeftButton;
    private javax.swing.JButton select;
    private javax.swing.JButton sphereButton;
    private javax.swing.JButton squarePrismButton;
    private javax.swing.JButton triangularPrismButton;
    private javax.swing.JButton zoomInButton;
    private javax.swing.JButton zoomOutButton;
    // End of variables declaration//GEN-END:variables
}